package jsyf.oa.entity.wreport;

import com.alibaba.fastjson.JSONObject;
import jsyf.oa.ientity.BaseEntity;

import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Created by y on 2018/3/19.
 */
@Entity
@Table(name = "T_WRT_COST_COPIER", schema = "oa", catalog = "")
public class CostCopierEntity extends BaseEntity {
    private String fkCostId;
    private String copyPersonId;
    private String copyPersonName;

    public String getFkCostId() {
        return fkCostId;
    }

    public void setFkCostId(String fkCostId) {
        this.fkCostId = fkCostId;
    }

    public String getCopyPersonId() {
        return copyPersonId;
    }

    public void setCopyPersonId(String copyPersonId) {
        this.copyPersonId = copyPersonId;
    }

    public String getCopyPersonName() {
        return copyPersonName;
    }

    public void setCopyPersonName(String copyPersonName) {
        this.copyPersonName = copyPersonName;
    }

    @Override
    public JSONObject getJSONObject() {
        JSONObject obj = new JSONObject();
        obj.put("ID", id);
        obj.put("FK_COST_ID", fkCostId);
        obj.put("COPY_PERSON_ID", copyPersonId);
        obj.put("COPY_PERSON_NAME", copyPersonName);
        return obj;
    }

    @Override
    public String getTableName() {
        return "T_WRT_COST_COPIER";
    }

    @Override
    public JSONObject getJSONColumns() {
        JSONObject obj = new JSONObject();
        obj.put("ID", "id");
        obj.put("FK_COST_ID", "fkCostId");
        obj.put("COPY_PERSON_ID", "copyPersonId");
        obj.put("COPY_PERSON_NAME", "copyPersonName");
        return obj;
    }
}
